package org.example.annotation;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

@Data
@Controller(value = "dc")
public class DemoC {
    @Autowired//byType
    private DemoA a;
    @Autowired
    private DemoB b;
}
